home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 127_01.zip / BDSCIO1.H < prev    next >
Text File  |  1993-06-17  |  2KB  |  84 lines

  1. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  2.  
  3. /* ADDITIONS TO AND REDEFINITIONS FOR THE STANDARD BDSCIO.H FOR BDSC 1.5
  4.  
  5.     FOR PROGRAMS BY ERIC MARTZ */
  6.  
  7. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  8.  
  9. /* CHARACTER CONSTANTS */
  10.  
  11. #define BELL '\7'
  12. #define CTRL_Z '\32'
  13. #define ESC    '\033'    /* Standard ASCII 'escape' character    */
  14. #define META 128
  15. #define NEWLINE '\n'
  16. #define SPACE ' '
  17. #define XON '\21'
  18. #define XOFF '\23'
  19.  
  20. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  21.  
  22. /* MISCELLANEOUS */
  23.  
  24. #define YES 1
  25. #define NO 0
  26.  
  27. #define FOREVER while(1)
  28.  
  29. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  30.  
  31. /* I/O DIRECTIONS */
  32.  
  33. #define CON_IN 0 /* SEE PAGE 45 OF MANUAL */
  34. #define CON_OUT 1
  35. #define stderr 4
  36. #define STDERR 4
  37. #define LST 2
  38. #define RDR 3
  39. #define PUN 3
  40.  
  41. /* LEOR'S NAMES FROM STDLIB1.C */
  42.  
  43. #define STD_IN    0
  44. #define STD_OUT 1
  45. #define STD_ERR 4
  46.  
  47. #define DEV_LST 2
  48. #define DEV_RDR 3
  49. #define DEV_PUN 3
  50.  
  51. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  52.  
  53. /* FILES AND RANDOM FILE I/O */
  54.  
  55. #define FILE struct _buf
  56. #define FILENAME 16 /* length of char buffer for a filename A:12345678.123 */
  57.  
  58. struct foffset {
  59.     unsigned record;
  60.     char byte;
  61. };
  62.  
  63. #define RECSIZ 128 /* SECSIZ is a misnomer except for single density */
  64.  
  65. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  66.  
  67. /* OPERATOR REPLACEMEMTS */
  68.  
  69. #define EQ ==
  70. #define NE !=
  71. #define GE >=
  72. #define LE <=
  73. #define AND &&
  74. #define OR ||
  75.  
  76. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  77. /* END OF BDSCIO+.H */
  78. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
  79. PAGE 45 OF MANUAL */
  80. #define CON_OUT 1
  81. #define stderr 4
  82. #define STDERR 4
  83. #define LST 2
  84. #defin